package model;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the USES database table.
 * 
 */
@Entity
@Table(name="USES")
public class Us implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private UsPK id;

	@Column(name="GOES_INTO_QUANTITY")
	private BigDecimal goesIntoQuantity;

	//bi-directional many-to-one association to Product
	@ManyToOne
	@JoinColumn(name="PRODUCT_ID")
	private Product product;

	//bi-directional many-to-one association to RawMaterial
	@ManyToOne
	@JoinColumn(name="MATERIAL_ID")
	private RawMaterial rawMaterial;

	public Us() {
	}

	public UsPK getId() {
		return this.id;
	}

	public void setId(UsPK id) {
		this.id = id;
	}

	public BigDecimal getGoesIntoQuantity() {
		return this.goesIntoQuantity;
	}

	public void setGoesIntoQuantity(BigDecimal goesIntoQuantity) {
		this.goesIntoQuantity = goesIntoQuantity;
	}

	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	
	public RawMaterial getRawMaterial() {
		return this.rawMaterial;
	}

	public void setRawMaterial(RawMaterial rawMaterial) {
		this.rawMaterial = rawMaterial;
	}

	
}